package Four;

public class Rectangle extends Shape {
	private int width;
	private int length;

	@Override
	public String toString() {
		return "Rectangle [width=" + width + ", length=" + length + "]";
	}

	public Rectangle(int width, int length) {
		this.width = width;
		this.length = length;
	}

	public double getPerimeter() {
		return 2 * (length + width);
	}

	public double getArea() {
		return width * length;
	}
}
